﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OSA.Policlinic.UI.WFAplication.DoctorWCF.RegistryServiceReference
{
    public partial class InsurancePolis : BusinessObjectBase
    {
        private string _series;
        private string _polisNumber;
        private DateTime _registration;
        private DateTime _expiration;
        private InsuranceOrganization _InsuranceOrganization;

        public InsurancePolis()
        {
            this._InsuranceOrganization = default(InsuranceOrganization);
        }

        public InsurancePolis(int id, bool isDeleted, string series, string polisNumber, DateTime registration,
            DateTime expiration, InsuranceOrganization insuranceOrganization):base(id, isDeleted)
        {
            _series = series;
            _polisNumber = polisNumber;
            _registration = registration;
            _expiration = expiration;
            _InsuranceOrganization = insuranceOrganization;
        }

        public InsurancePolis(string series, string polisNumber, DateTime registration,
            DateTime expiration, InsuranceOrganization insuranceOrganization)
        {
            _series = series;
            _polisNumber = polisNumber;
            _registration = registration;
            _expiration = expiration;
            _InsuranceOrganization = insuranceOrganization;
        }

      

      

      

        
       


        public override string ToString()
        {
            return Series + " " + PolisNumber + ", " + InsuranceOrganization.Name;
        }
      
    }
	
}
